import request from '@/utils/request'

// 查询教师课程信息表列表
export function listCourse(query) {
  return request({
    url: '/teacher/course/list',
    method: 'get',
    params: query
  })
}

// 查询教师课程信息表详细
export function getCourse(recordid) {
  return request({
    url: '/teacher/course/' + recordid,
    method: 'get'
  })
}

// 新增教师课程信息表
export function addCourse(data) {
  return request({
    url: '/teacher/course',
    method: 'post',
    data: data
  })
}

// 修改教师课程信息表
export function updateCourse(data) {
  return request({
    url: '/teacher/course',
    method: 'put',
    data: data
  })
}

// 删除教师课程信息表
export function delCourse(recordid) {
  return request({
    url: '/teacher/course/' + recordid,
    method: 'delete'
  })
}

// 导出教师课程信息表
export function exportCourse(query) {
  return request({
    url: '/teacher/course/export',
    method: 'get',
    params: query
  })
}